const iconLinks = new Map()

// 4s店...
iconLinks.set('CarStore', [
  {
    icon: 'iconshouye-cheyuan',
    label: '车源',
    color: '#fa763e',
    path: '/pages_carSource/optionsCar/optionsCar',

  },
  {
    icon: 'iconshouye-xunche',
    label: '寻车',
    color: '#ffc20e',
    path: '/pages_findCar/findtheCar/findtheCar'

  },
  {
    icon: 'iconshouye-meihubaojingpin_1',
    label: '车品',
    path: '/pages_carGoods/carGoods/carGoods',
    color: '#43a0fc',

  },
  {
    icon: 'iconshouye-xunpeijian',
    label: '寻配件',
    path: '/pages_findAccessory/accessoryIndex/accessoryIndex',
    color: '#f96a56',

  },
  {
    icon: 'iconzichanguanli',
    label: '发起交易',
    path: '/pages_order/securedTransactions/securedTransactions?page=index',
    color: '#0FB97F',
  },
  // 暂时隐藏
  // {
  //   icon: 'iconshifadi',
  //   label: '物流',
  //   path: '#',
  //   color: '#00CB86',
  // },
  // {
  //   icon: 'iconshouye-dianzi',
  //   label: '垫资',
  //   path: '#',
  //   color: '#ffc20e',

  // },
  // {
  //   icon: 'iconzichanguanli',
  //   label: '发起交易',
  //   path: '/pages_order/securedTransactions/securedTransactions?page=index',
  //   color: '#0FB97F',

  // },
  // {
  //   label: '购车计算器',
  //   icon: 'iconshouye-gouchejisuanqi',
  //   path: '#',
  //   color: '#FFA42C',
  // },
])

// 主机厂
iconLinks.set('Factory', [
  {
    icon: 'iconshouye-cheyuan',
    label: '车源',
    color: '#fa763e',
    path: '/pages_carSource/optionsCar/optionsCar',

  }, {
    icon: 'iconshouye-xunche',
    label: '寻车',
    color: '#ffc20e',
    path: '/pages_findCar/findtheCar/findtheCar',

  },
  {
    icon: 'iconzichanguanli',
    label: '发起交易',
    color: '#0FB97F',
    path: '/pages_order/securedTransactions/securedTransactions?page=index',

  },
  // {
  //   label: '垫资',
  //   icon: 'iconshouye-dianzi',
  //   color: '#ffc20e',
  //   path: '#',

  // },
  // {
  //   label: '物流',
  //   icon: 'iconshifadi',
  //   color: '#0FB97F',
  //   path: '#',

  // }
])

// 美护宝
iconLinks.set('RepairStore', [
  {
    icon: 'iconshouye-meihubaojingpin_1',
    label: '车品',
    color: '#43a0fc',
    path: '/pages_carGoods/carGoods/carGoods',

  }, {
    icon: 'iconshouye-xunpeijian',
    label: '寻配件',
    color: '#f96a56',
    path: '/pages_findAccessory/accessoryIndex/accessoryIndex',

  },
  // {
  //   label: '适配查询',
  //   icon: 'iconshouye-shipeichaxun',
  //   color: '#4DA9EB',
  //   path: '#',
  // }
])

// 养护门店，自营/加盟
iconLinks.set('BeautyStore', [
  {
    icon: 'iconshouye-meihubaojingpin_1',
    label: '车品',
    color: '#43a0fc',
    path: '/pages_carGoods/carGoods/carGoods',

  },
  {
    icon: 'iconshouye-xunpeijian',
    color: '#f96a56',
    path: '/pages_findAccessory/accessoryIndex/accessoryIndex',
    label: '寻配件',

  },
])

export function getIconLinks(auth) {
  return iconLinks.get(auth)
}

// tabs切换标题
const tabsTitle = new Map()

tabsTitle.set('CarStore', [
  {
    'name': '特供车源',
    'api_url': ''
  },
  {
    'name': '最新寻车',
    'api_url': ''
  },
  {
    'name': '精品特供',
    'api_url': ''
  },
  {
    'name': '最新寻配件',
    'api_url': ''
  },
])

tabsTitle.set('Factory', [
  {
    'name': '最新寻车',
    'api_url': ''
  }, {
    'name': '特供车源',
    'api_url': ''
  },
])

tabsTitle.set('BeautyStore', [
  {
    'name': '精品特供',
    'api_url': ''
  }, {
    'name': '配件询价',
    'api_url': ''
  },
])

tabsTitle.set('RepairStore', [
  {
    'name': '精品特供',
    'api_url': ''
  }, {
    'name': '配件询价',
    'api_url': ''
  },
])

export function getTabsTitle(auth) {
  return tabsTitle.get(auth)
}
